package scsc.web.xzgl.building.graph.data;


import scsc.pub.data.WebPageUnitMap;
import java.io.Serializable;
import scsc.pub.tools.StringUtil;

public class WebPageUnitMapData extends WebPageUnitMap implements Serializable {
	
	private String pagetitle;
	private String unitname;
	private String buildname;

	public WebPageUnitMapData() {
		init();
	}

	public WebPageUnitMapData(Integer id,Integer pageid,String pagetitle,
								String unittype, String unitname,
								Integer unittop, Integer unitleft, 
								Integer unitwidth, Integer unitheight,
								String forecolor, String bgcolor, 
								String other, Long paramid,String buildname) {
		this.setId(id );
		this.setPageid(pageid );
		this.setPagetitle( pagetitle.trim() );
		this.setUnittype(unittype.trim()  );
		this.setUnitname( unitname.trim());
		this.setUnittop(unittop );
		this.setUnitleft( unitleft);
		this.setUnitwidth( unitwidth);
		this.setUnitheight(unitheight );
		this.setForecolor(forecolor );
		this.setBgcolor( bgcolor);
		this.setOther(other );
		this.setParamid( paramid);
		this.setBuildname( buildname);
		
	}

   public void reset() {
	   init();
   }

	public void init() {
		this.setId(null );
		this.setPageid(null );
		this.setPagetitle( "");
		this.setUnittype("" );
		this.setUnitname( "");
		this.setUnittop(null );
		this.setUnitleft( null);
		this.setUnitwidth( null);
		this.setUnitheight(null );
		this.setForecolor("" );
		this.setBgcolor( "");
		this.setOther("" );
		this.setParamid( null);
		this.setBuildname( "");

	}

	public String getBuildname() {
		return buildname;
	}

	public void setBuildname(String buildname) {
		this.buildname = buildname;
	}

	public String getPagetitle() {
		return pagetitle;
	}

	public void setPagetitle(String pagetitle) {
		this.pagetitle = pagetitle;
	}

	public String getUnitname() {
		return unitname;
	}

	public void setUnitname(String unitname) {
		this.unitname = unitname;
	}
	

	

}
